<div class="contentr fr">
    <div class="cr">
        <p>充值保证金</p>
    </div>
    <p class="ml50 mt30 f16">充值保证金与任务金额限制关系如下表：</p>
    <table width="753" border="1" cellspacing="0" cellpadding="0" bordercolor="#dddddd" class="ml50 mt25">
        <tr>
            <td width="121" height="43" align="center">保证金</td>
            <td width="93" align="center">100</td>
            <td width="93" align="center">200</td>
            <td width="93" align="center">300</td>
            <td width="93" align="center">400</td>
            <td width="93" align="center">500</td>
            <td width="151" align="center">1000+平台等级5心</td>
        </tr>
        <tr>
            <td height="38" align="center">任务金额限制</td>
            <td align="center">400以下</td>
            <td align="center">500以下</td>
            <td align="center">600以下</td>
            <td align="center">700以下</td>
            <td align="center">800以下</td>
            <td align="center">不限制</td>
        </tr>
    </table>
    <div class="ml145 mt15">
        <form action="" method="post">
            <div class=" mt30">
                <label class="f16">充值保证金:</label>
                <input type="text" name="money" class="kuang3" id="deposit" onchange="getCoin();"/>
            </div>
            <div class="mt25">
                <label class="f16" style="margin-left:17px;">扣除金币:</label>
                <input type="text" name="coin" class="kuang3" readonly id="coin" />
            </div>
            <div>
                <input class="submit_reg mt25 ml85" type="submit" value="充值" />
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    function getCoin(){
        var money=$("input#deposit").val();
        $.ajax({
            url:"/user/getcoin",
            type:"POST",
            data:{money:money},
            dataType:"json",
            success:function(result){
                if(result.status==1){
                    $("input#coin").val(result.msg);
                }else{
                    alert(result.msg);
                }
            }
        });
    }
</script>